Light the red LED on startup until the card is initialized.
Renamed data extraction script and refactored it.

Variable naming is now better.
More comments.
Files are properly closed at the end.
Errors/warnings are more clear.