Changed how stats are found to avoid problems when the index changes

Changed stats retrieval to use XML element names instead of an index, since the index seems to change.

Fixed problem with required options specifying options that are gone in 0.3 (how does 0.3 work?)

Needs some testing.