add options for median filter on input data
fix tests according to new way of doing refinements...
based on ring indexes and d-spacing