Updating readme, adding example and updating tests.