Improvements on Formatter.

Adds try/catch block formatting.