added a README example
changed the initialization parameter to accept a string instead of a hash