tidying - removing deprecation and trailing whitespace

- `source :rubygems` in the `Gemfile` is deprecated
- combed the whole repo for trailing whitespace