added main method to Controller, as it is the entry point for the program

added Java gitignore file