Tidy up function names and reduce magic numbers
Rename padn to pad-tail and fix to 5 digits
Add coord to grid ref functions