Add '--hex' CLI option

Add a new command-line option, which changes the output format from binary to hex.

Edited by Frank Sauerburger