continue tidyup, comment removal/review. use byte_reverse function