added doc parser test, rubocop source checking and refactor, lib - cli -> global variable documents comment