Fixed a typo in app, and moved the app to lib directory.