Added getSIMod(a,b) math utility
Moving stuff to headers
Major refactoring, minor optimizations