added configuration to enable/disable stacktracing incase of error
Syntactical changes!