Various comments on the code. Please try to address these. Feel free to come ask questions.