Update doc with the convenience functions
Add helper function to deal with the commands in a better way.