Added rspec tests.
Added example, added some cleanup