Fixed formatting, syntax

Made the indentations more standard, added colons where they needed to
go.  Removed some infinite while loops.  Made simpler flip-flop commands

Added some information to the README