Changed labels - now they are 0=1, 1=-1, 2=2, ...Also fixed some bugs