Fix some coding styles

By using rubocop ( https://github.com/bbatsov/rubocop ), I've fixed some coding styles.

If there something you prefer to my changes, please feel free to tell me.