Added support for casting, indention of code.

TODO: fix nested methods within TRY CATCH