fixed a few tiny bugs in lib/cofi_cost.rb. Added rspec specs in spec/cofi_cost_spec.rb