Problem with SPI Flash memory

Uncomment these in void setup, put in this order:

// pinMode(SS, OUTPUT); //already declared in SPI.cpp
// digitalWrite(SS,HIGH); //already declared in SPI.cpp

I don't think SS is declared.
The master SPI device needs to know that D10 is an output to go into SPI master mode.