Added anchor link to each line

Also minor cleanup