renamed project, added functions and command line arguments.