updated index.rst
minor fixes to matrix_sort.h
add code analysis tools
use python scripts to detect and fix some errors in preamble parts of files (tested)
Merge branch 'master' into random
minor fixes of file preambles