Add removeData function

Evin, here is the patch to add a function to remove data from the state chart. Unit tests are also included.