Minor - fixing PHP warnings.
Minor - fixing PHP warnings, format code, updating docs.