Added showDialog methods to all exceptions, cleaned up the code and made
some small fixes.