Started putting some reasonable buffer types in place prior to code generation
cleaning up code as I change to buffer wrappers
replaced NULL with safer nullptr
tweaks for gcc
The great buffer overhaul
minor tweaks for gcc