Refactor

Refactor finished, all printing have (more or less) been moved to the tables repository. I haven't made a memory efficient printer yet though (that's for another branch).