Incorporated a matrix system into the graphics pipeline. Renamed an error-printing macro.