Added the form and the api to edit commands, and fixes #5