Fixed some XML bugs that were causing crashes and added some new configurable mod constants.