Fixed xray pattern import. Now can handle raw patterns that are not sorted in ascending two-theta order