Some basic drawing working.
Added a lot of the functionality.