Added retain_calc function for consideration
Added a new function to pad integers with leading zeroes
Rebase to upstream master
Merge pull request #21 from jasonpbecker/master

Added retain_calc function for consideration