Fixed reading FAT12. Tested on OSX made floppy image. Various other changes to some lib functions.