Moved non-mathematical constants. Added base function module.
Added 4-by-4 matrices.