add command() docs, closes #1