Changed include guards to '#pragma once', which is supported since Microsoft Visual C++ 5.
Tweaked a variable declaration order.
Added blank lines at top level to achieve 2 blank lines between functions.