remove old debugging cruft
clean up bitstream string serialization functions
mass reformat