Controlling robot arm KSR10

Here is a diagram, as far you want to see it. Are these inverters recommended for use to control DC motor in robot arm? What is the importance of using invertors 7404 on the breadboard? I have ceramic condensators 33pF which they are lying around outputs of DC motor. These things are too connected correctly and what are is used?