small update to xml reader

Will continu developing it in the main project since it depends on other
files