Controlled manipulation of single atoms and small molecules with the scanning tunneling microscope