Fix rubocop issues and add header

#900 #868