added peak detection method, refactorization.  Committing in prep for adding Wav file decoding
added peaks method, refactored.  milestone in prep for wav file decoding.