Fixed docstring and write mode.