Added padding and font options to the integer write routine.