cleanup, research, main() has appeared in seq.c but just contains mind dumps and snippets, lots of other stuff