Pad ID's with Zeros

Pads to 9 digits with zeros on the left. Also updated comments and
formatting.