CID 966234.
CID 966348.
Use pragma once.
Indentation improvements.
Clean up structs/enums.
CID 966174.
CID 966060.
Clean up dead code.
Trailing spaces.