use a version number for binary output and check that it's what we support on the way back in.
fix whitespace
fix a thinko