add command line parsing in main.cxx

- command line is now parsed for "-r" flag to find the project folder. This ensures that an out-of-the-box compilation and execution runs smoothly.
- added info to the README