C16 : Massive update. Improved thresholding and filtering. Integration of the cavity's algorithm. Lots of minor changes.