Logging, Comand Line Support, Custom Error Handling, Debug and Config Improvements

Logging, Comand Line Support, Custom Error Handling, Debug and Config
Improvements