Add some fairly exhaustive documentation to Command
Obvious fixes to obviously untested chai-as-promised