Code clean; tested everything but denoising and NLM