update commands for new version, update API.md, add a test