add gemfile with rspec
move tests to spec/ . spec_helper requires all files
move all code to lib