remove unused scripts and edit other ones according to rubocop suggestions
edit codes as rubocop suggests