CS fixes

Some CS/typo/PhpDoc fixes I came across while working on #84.