pull request attempt

Here are the 3 patches I submitted via usenet, but this time submitted via a pull request.