format code
fix issues in xml parsing loop
fixed octaves on restarting game