Added functions for digits 1 - 9
Changed functions to hex numbers