(fixed) delete key now works as it should
(fixed) spurious newlines removed when generating text representation.