Update exception-safe doc

Replace scope classes with structs.
Improve formatting.