Polished off the command api and example to send to Adrian for review