Shared examples for specs

Refactor for specs to use Shared example...Added example usage to readme.md