wrote buffer documentation