Has been corrected algorithm and Made visual representation of values ​​Emin, eMax, threshold and energy