Updated math functions and casting functions to match new format
Merge branch 'gh-pages' of https://github.com/biometrics/likely into gh-pages