In depth fixes

Alright, second pass time.

This time, I ran through the actual inspector. What mostly came through were PHPdoc problems and spelling errors.

There are four commits (the ones that can be expanded) that might warrant some discussion. The tests are coming back fine, so I guess it's safe - but you still might want to check on those in particular.