Remove debugging print()s
Consistently use FormatError for all parsing problems.

Some parse errors were thrown as ValueErrors causing a backtrace to be
shown when the occurred since only FormatError, not ValueError is
caught in the main program.