Gymbal lock problem fixed by storing rotation matrices in SmoresModule objects.  Configuration generator now appears to work properly.