Added logging
Modidied logging messages
Improved loading time by factor 10 !
Merge pull request #1 from monodo/speed_optimization

Speed optimization and code re-organization