Add rubocop to lint in default rake task + fix warnings

Disabling the other cops because they are quite opinionated and noisy. The
lint checks are the one we should really care about though, because they
highlight code smells.

---

Fixed all existing warnings.

---

I feel this would be useful, as a programming newb.