Allow Update and Draw functions to be turned off

allow nil to be passed as an argument to SetUpdateFunction and SetDrawFunction to turn off said functions.