filtering and distance functions
readme updated