cleaned up the frontend app and added comments
cleaned up the backend app and added comments