added math library some of the pil and cs stuff
made the cmake build system a bit more organized