implemented printHexa to correctly output the contents of the counter

Also, added some dividers for readability