Corrections preproc

Corrections to preprocessing and some other latest changes. Also added filter sinc function to ctps.