adding Writer::__destruct
documentation update