Modified some of the comments at the top. Code wasn't modified.