fix bugs: q in ed.py, b in ed0.py, also tweak ed.md