Create hexout.c

Smelly, needs greatly improved.