Rewrote path handling and added config file

Rewrite the path handling
Add mandatory configuration file at project basedir
Merge pull request #8 from stereokai/master

Rewrote path handling, added config file support, comments, and some cleanup