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