fixed a bug where the wrong atoms were chosen in constructing the basis
changed ListOfMolecules to not use signals anymore