replaced php into '<?' with '<?php' which is compatible with productive environments
fixed small bug result variable
added closing '?>' tag to Pad.php