Add some more comments on the feeds script, use parameters in functions