added neater toString method, useful for reading exceptions and debugging.