added stack trace to exception handlers.
New tests added.
More tests
Warnings fixed.