Adapted Mellis' and Igoe's project for our purposes. Overhauls much of the SD file checker.