Code clean up
Added test for functions in functions.sml
Merge branch 'master' of https://github.com/sssf/Abacus