added support for sampling, better way to add custom units, new exception for calculations, and some optimizations
Merge branch 'master' of github.com:gerdkortemeyer/loncapa