Exceptions and PHPDoc finishing touches.