almost all rubocop fixed
fix all rubocop and foodcritic issues