A note symbol appears too far from the note I wanted it inserted on.

Have you activated the correct voice? Note symbols are inserted into voices, just like notes.