Added XML parsing and modes/options support, can't yet figure out enabled mode/options