Added print_episode, get_documentelement to be debugged