Minor fixes

1. Bug fix in sane_morphism() (wrong total count).
2. 3 minor modifications in preparation o the Wordgraph version.