Building Energy Management Systems: An Application to Heating, Natural Ventilation, Lighting and Occupant Satisfaction