Adds class comparison, new real + imag functions