code is bug free now, though needs some tests and refactoring.
candidate selection in feature graph is now clear, edit to make it correct.