langdoc.py -- refactoring of the pass1.py started