Indoor airflow, air quality and energy consumption of buildings