Changed behaviour of delete and backspace keys. Added tests for tree sanity, ui sanity and tested for deleted objects being cleared. Fixed bugs. Added menu option for running sanity test.