Improved the readme

Added an example to the readme, and added tests to prove the example
works