fix empty instruction; add anchors and top links