More code clean-up

Move genalogy.c to graph and remove more unused io.c stuff