clean ptf.ds package; move code to PTFPersistence class