Add documentation for the security framework