Started working on a buffer class.
Completed and tested buffer class.
Changed parse function to use new charbuffer class.