Some documentation enhancements. Function writeComment is now exported as comment.