Simplified web app and added some comments.