Added support for deleting rows when editing. Other improvements.