Added writing documentation.