Main Script to run PHoP