Source code scanner and documentation generator