add doc comment
fix rubocop violations