Extended ctselect to consider user defined energy thresholds
fixed minor bug
Integrate code.
Merge branch '1039-allow-energy-thresholds-in-ctselect' into integration