Added documentation and an example usage.
Merge pull request #16 from arb/documentation

Added documentation and an example usage.