added comments
fixed bug in extraction of file name

* the grep wasn't limited to the first match (which would  have been
	in the diff "header" section)
* so it would match the last line with +++ in it, which is
	not too uncommon to see in comments.