ed.py: add u, r, c functions, reorganize B, i, a
also add more tests