update index yield gate
convert some comments into gates
remove comments from syntax