Fixed some comments and variable names. Added a few tidbits.