Add #pragma once to all headers.
Refactored code to use built-in bool type.
Removed trailing whitespace and multiple blank lines.