translate page displays generated text
added print statements to debug, reordered functions