bad2.php and phpplot2.php now OK. Need to cleanup code files