Cleaning up indentation
Reworked App to load a module
Loading hat data from view