Renamed Program.enable_object to activate_object and did some cleanup.