Update p3update.php

did a few changes, needs work on programname update