Improved the example project.
Fixed a bug in the lib that caused a nullpointer exception upon first draw.