factored out dump_as_binary
minor indention/comments fixes

and removal of unused comment code
better naming for output of read_dump_rpf