Merge pull request #18 from robwormald/development

Lots of breaking changes WIP
Starting a new example app.
Pulled out function so it will pass strict mode check