Restoring working FQM-version from master.
Include invariants in setup.py.
Minor optimization.