Additions, fixes and tweaks

Added pp_Locate and pp_Prime
Fixed pp_Rearrange
Tweaked pp_ATPAFromTPA