Averaged values of areas under peaks and created threshold values with different powers of 10 as divisors.
Removed debugging print statements.
Capitalization police action.