refactor
renamed to result
renamed to commandName
eliminate getCommands
moved getUserData
Declaration array
absorb getUserData