moved config example and better readme
general code clean up, better documentation and function splitting