fixed bugs in dynbuf_insert and dynbuf_pop
added demo
improved demo