Added resampling example
Added setphase! function