Updates formatting, adds comments, fixes typos, and replaces 'while True' with 'while 1'
Merge branch 'new-review'