deletions of methods can now be undone and are inserted in the right
order.

regarding issue #3
The order of attributes and method is now preserved while
deleting/undoing deletion.

Fixes bug #3