writing up the documentation