added multiple page support and wrote a simple function for a text_box
unfinished bardiagram