Added some more documentation and a basic example.