Got text pages working
Fully encapsulated the rest of the functions