Re-Instate genealogy.c

Moving the genealogy code to simplify the being code a little.