Added resampler code
Added resampler code to Makefile and other files