Adding the purge data feature; fixing the config feature