Merged and fixes.

Fixed an FREAD issue. (it was never used)
Trying to understand problems with LOD.