Minor editing of grammar and re-wording agents and anonymous functions

I originally sent these changes to josevalim/portal but he directed me to send them here. It's just minor grammatical changes.