Finished threaded buffer example. Will check it over in the morning.