data exploration with varying tolerance; some plotting functions added