Refactored Text print engine into it's own module.