new function get_input() for reading keys. major optimizations
removed config for assigning XMLs; added get_xmlpath(); improved get_input();