Ruby 1.9.2 Corrections

Corrected failing rspec for Ruby 1.9.2 confirmed to still work on Ruby
1.8.7.

1) added require ostruct
2) added gem crack
3) adjusted spacing from tabs to 2 spaces
4) minor corrections to code base