several improvements; add an internal state reader

some forgotten added files

(0) -10 -2 +2 +10 +30 tip

mercurial