Bring simplehelm into line with other code.
Fixed a subtle but serious bug, in which the nx and nz were switched in the dimensions variable. This had some weird effects, and was invisible to testing with nx==nz.
Improved examples.