Added numPad() helper function

Formats a given number with the desired number of leading zeros