added add_to_buffer function and fixed problems with initialization of Bounded_Buffer