Rewrote path handling and added config file

Rewrite the path handling
Add mandatory configuration file at project basedir