Importing from java-lightmodels the termbreaker logic
test collect values completed
Minor correction