Format buffer code

I forgot public functions are going to be Capitalized.