Tweaks to Homework1 comments

made the code easier to understand by adding comments