Configuration and initialization changes.
Changed the init flow and logging.
Merge pull request #48 from tomma/master

Changed the init flow and logging.