fix broken links, update code example