improved code indentation
refactored saving syntax for clarity
added app to main to sure that app is loaded first; added comment to clarify where controllers should be initialized