Update functions.cpp

basically i only changed the input names, it refers to the function,so like d(istance)Input,s(afe)Input and b(ullet)Input.