changed legendre projections (still not sure what is best), fixed math bug