Minor - adding docs, fixing php warnings;