Updated export errors added updated math helper functions