Tweak format check

Fixes #145?
Add some missing phpdocs