Clean up comments and formatting
Improve comments for localinfile
Cleanup code and improve comments
Draft implement ChunkResource (subchunk mgmt), untested.