DANG SPI!!!!!

When I add the code for the SD card... The code just goes into a loop at "Initializing SD card... card initialized." Writing it over and over.

The SD library needs a 512 byte buffer to write to the card. That's 1/4 of your memory.