Added commenting and fixed up the app front end