Update dev deps
Add encoding comments
Add rubocop and update code to match style rules