Move the long-byteArray functions to a Utitlies.
Merged the main function