Several changes
* Add a sorting step in add thresholdLimits method
* renamed node.thresholds => node.thresholdLimits