Rewrite and comment all php api functions
Build api.server.payload basic module