Update ed.py for better error messages, etc.

Really cool app!!