Added better comments to autodoor, Serial_Prox, and added a function to reduce redundency in door_runtime.