Probably the easiest way would to be to use the
HereBeDragons library. It does all the heavy lifting for you.
If you are just wanting to make your own notes, try
HandyNotes, which uses HBD as a backend. And you can set waypoints using TomTom, also using HBD. You can find TomTom on both Wowinterface and Curse.