Added rspec tests and .gitignore. Fixes #1.