major refactoring

* fixed readme
* added new functional main
* added missing main.h
Merge pull request #1 from apfohl/feature

Feature