Cast data into prepare_tx50 into int, order data for hex processing, ret...

...urn byte stream on conclusion of prepare_tx50() and break up code into 3 methods, prepare_tx50, construct_packets, and build_transaction().