Remove Buffer class pt1
Remove the old Buffer class from the library.
Fix up the factory pattern.
Remove the old TODO.
Fix uninitialised vars.