Last Commit of the night

Stable drawing output. Still needs a bit f work, but higher level apis
can be built on top of it wionut much toruble.