Logging/Exception/Error handling + pretty print.

+ Exception/Error handling
+ log4net logging
+ Outputting error messages to console
+ Pretty print option for output JSON