Energy Management and Operating Costs in Buildings