Cleanup

#### Changelog
* Cleanup in code
* Gave basic functionality a core file. 
* added example file
* added config file