Level.cs and XmlIO.cs modified