Use dictionary to map input to actions, use docstring for documentation