small style imporvements in tools
Refractorings in configuration, removed main module specification requirment from config files. Small style fix in logger.
Huge refractorings/optimalizations in the core. Many style/formatting improvements. Removed some dependiences.  Removed some bugs.

Example now draws sth.(green rect) in window.