Applied simple MVC organization, refactored

Reorganized the code into model/view/controller sections, refactored controller code to make code more extensible and modular by allowing for different types of reports to be run.