updated instrument.js and documentation at docs/commands.md