Added lots of stuff.

Drawing functions, mouse click detection, and minification.