Fix globalOffset name and examples

 - renamed updateGlobalOffset
 - fix DIM3 to simDim in examples