updated php example, and readme