Refactored all the source engine code to be neat and also commented stuff a lot more.