Fixed some XML manager bugs.
.gitignore changed.