Certain investigations on performance of respiratory system and development of an expert system for diagnosis and treatment