added first regex to test for the word solid in the first line of the file.