Made some class members protected (refs #106) and added a few phpdoc comments.