Email Record: Energy management in buildings using photovoltaics /