added 6 output function for adaptive threshold values
corrected spelling for threshold '-_-