Major code sweep. Added comments, and did some slight cleanup for the good
ol' TAs.