made changes to allow a sample envelope larger or smaller than the signal sample size