WRITE some errors

MODIFIED main.py         - write some errors
MODIFIED er              - delete completed errors