Fixed the WiFi connection.
Added script for writing to the sdcard.