did some cleanup and started working on the actual code

added main.py for all testing and running
also implemented layout.py and controller.py