cleaned up some code with rubocop gem
added thought patterns
cleaned up more code based on rubocop