Fix for waking from hibernation.
Added explanation of the FAT12 filesystem parts and cleaned up code a little.