Add `safe_` prefix to all methods.
Reorganize headers and expand documentation.