added function end and program end quad
added string print quads
fixed if quads