Updated README and split into lib/spec files