added Pdfile handle and basic patch tracking with nsmutablearray