Improve documentation and merge the functions "AddCommands" and "AddSubCommands"

Signed-off-by: Severen Redwood <severen.redwood@gmail.com>