Nit: the debug statements in each individual clearing function seem like overkill; the single such statement in simulatorAppUpdate should be sufficient to inform us that the data is being cleared.