Fixed random geo out of bounds error
Added docs and comments to random geometry