Merge "Fixed many small spelling mistakes and php docs, var decl."