new version of allelegen.c

Richard Hayes:
"Here is a more advanced allelegen.c. It shouldn't change the
implementation of anything if you replace my old code with this,
but keep a backup just in case. Let me know if you have any
questions.

My phone: 617-999-4000" (11/11/13)