Added printChar and printString functions, switched some variables to
global