rspec files added

Added rspec files. Also found some errors that needed to be corrected
and made the changes.