Implemented default currentDirectory + made main.scala more scalaly