updated rspec, moved spec files to lib directory