Make some of the drawing functions public.
Add more documentation and a memory-management section and example.