added resin shear example and support for x0 periodic boundaries