refactored the input data and stuff. test case updated.

engine can now undo a deletion. undoing add still not tested. will be
manually tested.

Signed-off-by: Nicholas Lum <nicholaslum444@hotmail.com>
Merge branch 'develop' of https://github.com/cs2103aug2014-t16-3j/main into develop