Cleaning up example files, and fixing PHP error