Fixed globalphase
Modified latex function
Changed \-pi to -\pi