changed from 'split into maximum window length' to 'split into this window length' to avoid too short windows. Included default lowpass before decimation. Fixed small bug.