added functions current_exception_cast, current_exception_diagnostic_information, various other minor changes, documentation update