fixed problem with generation of documentation. added sequence rewriter.