Added rectangle drawing function
Fixed a segfaulting bug in drawing function (again)
Shorten some variable names to fit some lines into 80-char
Added functions to draw 3D primitives