modified main.py and xmlhandler.py, nearly finished