Improved and cleaned up the example project, added documentation.