Some slight formatting changes and normalizing normal vectors after setting members.
Replaced NULL macros with nullptr.
Added basic implementation for a static buffer, fixed some invalid nullptr to DWORD parameters.