fixed buffer util, added example, dynarr is not needed.