added more code required to make code run. removed int return value of add to buffer as it had an ill defined interface and odd use. still working on getting code to build
got most of build working - need to fix some issues + remove duplication in makefile