Fixed a typo, and added some more comments