Added file for math functions. Added new class RefDef which holds reference data about what to possibly render.