fixed a bug with coeff key ordering
added boson and fermion state generator