clean code and add some comment
Merge branch 'ENG-6265-add-format-currency-func' of https://github.com/VoltDB/voltdb into ENG-6265-add-format-currency-func