ed0.py: fill in with functions moved out of ed.py
not complete, some functions not yet working in ed.py or ed0.py