Fixes in the security design and more updates to the documentation.