minor changes:

- change all "str" to 'str'
- adds parenthesis to methods
- whitespace alignments
- changed or to ||
- changes for x in loop to loop.each do |x|
- minor change to view style
this was added as ```e``` might not be initialized.