analyzer.py better title format and maxdeg handling