Finshed buf api
Added header api