cleanup code; merge input tables into a single sane one; fix slightly broken archive entries
move common(?) code to module
allow looking at distribution after it has been unarchived