Refactor

Improved iterative_threshold function and refactor order of the argument of 'show' function to make 'text' optional.
Corrections

Correction for the adaptive_iteration