added global buffer size defintion and updated readme