change in philosophy, more use of libft, last buf is now malloced