updated merge and some new functions

Increase and decrease functionality for refresh rate and threshold value. Added getter for threshold and refresh values as well.