Pad filenames with zeros

such that it loops over data points in order.
Update directory looping

Same functionality, clearer code.