Data filtering

Changed the code, so it can filter some low quality data.