Adding try/catch to ommit errors during invoking hooks

see #168
Fix typo

see #168
New formatter for PHP