Adding docs, fixing PHP error.