Fixed memory leaks in core code (cell added attributes were not properly deleted when running simulation via Python). Added new cleanup functions to simulator and cell inventory. PLayer seems to be functional now and does not leak memory