added seq.h++,typelist.h++, and refactored some older ones