add documentation, support for newcomment