Comment every function with a structured comment. The comments are used to generate documentation. The syntax is similar to ydoc (kdoc).
Do
/** * Update the SCR from the map of all security settings * * @param map settings a map of all security settings * @return boolean success */ boolean SecurityWrite (map settings) { ... }