build file documentation and per-function documentation