simplify number function implementations
add rudimentary module support
add first few functions of math module