Code clean-up and optimization.

* Correct a GetConVarBool which should have been GetConVarInt
* Add hook to restore default settings when disabled
* Comment various functions and inputs/outputs