Fix documentation for setmode. Closes #32.