Who improved on an earlier device and created the telegraph?

Samuel F.B. Morse