Update README

Fix issues with for loop. Improve logs for filtering.