Padding could end up double. Remove to*range($pad) as it probably just confusing to be able to pad an existing range, what to show in hexdump etc? zero bits that do not actuall exist at that range? Add tests and binary stdout support to tests