Added new app for demonstrating thread pool. Added wait functions in task class. Other minor changes.