Added tests and working example. Preparing for initial release.