New refactor structs

Refactoring finally done, all of it. Maximal repeats, mums, iterate and everything that iterate uses.