updated php lib including uploadProfile and doc links