synching sd reader to atlas ph output

I have no idea if that function is necessary or not. I have very little experience with the SD library. The problems that I pointed to are all programming syntax mistakes.