Fixes and minor improvements to security docs