Added sprint_terminal(), split functions to give print_terminal() and clean_terminal(). Added xml folder and 0.xml.