Removed unused files from lib and dist and fixed code styling inconsistencies

The `dist` folder and many files in the lib folder were unused so I removed them from the repo.  The code style in `app.js` was inconsistent with that of the library so I made styling changes to achieve consistency.