Adds basic command line interface
Adds application.py and refactors code