Added some comments so the Comment-Nazi doesn't get me. - Also made some minor changes to make the code cleaner.