Fixed a few minor stylistic, spelling, and programmatic mistakes