allows makehex to use arbitrary offsets
add prepend to makehex to prepend file size