started documentation and splited math library in seperate files