add development dependency 'rspec'
add test specs and some modification in the library
update README doc