Implement command fit
Fix defect
Document command fit
Improve test suite – minor