Improved detection of whether an XRD pattern is already processed

Patterns with more than 500 "peaks" are now treated as raw pattern data