moved XML class to own file; introduced template parameter; added command-line arguments for waveguide_params; added prompt after each iteration; xml files are now updated to the correct length