added verbose output to an exception
fixed a bit and removed test output lines