ed.py: continue revisions to work with new ed0.py
now shorter and neater, but revised a(ppend) and i(nsert) not working