Get document use reader directly

Also added close in finalizer
Added temp folder index constructor
Map extension to force using update

It assumes same key is never used twice so no check on put - uses more
performant update method and returns null