Add appModel to appView
Add some documentation
Fix whitespace problems