fixed bug: return the peaks after having looped through everything
a few changes to the indices for indin and indout (I think it's better?) and a couple cleanups

* normalize wave after reading from file (to more closely match values from matlab)
* only set time variable once (it doesn't need to start at 0, then go to 100000)
* siz and leny variables removed, just using len(y) directly
merged