It was possible to make some sections of the code shorter. Also fix a bug where the last printed address was always in hex rather than depending on the radix chosen.