Added stack trace in exception thrown method, also debug option in the configuration file.
WARNING: YOU MUST RE-GENENERATE YOUR CONFIGURATION FILE!