Code style unification

Ran `rubocop -a` which mainly unified the code style used across the files.

Also added the license which would fix one of the warnings in #59.