getCommands() returns all commands including the ranges