refactored main method

The user could either set up a new project or inert/update config settings. Therefore those two routines are refactored into separate methods. Config setting is not implemented yet. soon...
added comments