Some cleanup - minor edits (deletions, comments, spelling correction).
commented out a cout (used for debug)