printCode function added

Prints current tab, though code flows off the page horizontally, needs
tweak to something.