Add documentation header, fix regex

The old regex `(went|go(ing|es))?` won't match on `go for it` and would match on ` for it`. This fixes that.

Also added a documentation header.