Added a stack based buffer implementation and made small documentation improvements