added description to default_rewriter
made do_rewrite functions private
empty takes a typebuffer_container ref
added do_empty to default_get_rewriter