Updated docs and fixed the global buffer size value to be read from variable.