updated qudratics example and tex output support