change to subApp
Merge pull request #4 from Plypy/master

change to subApp, slight style cleanup