minor fix
change downSampleFactor to 5
minor bug fix, the phase parameter will now in a correct range for any given i