ADD: spin up and down
ADD: exchange term
ADD: temperature
ADD: loop chemical potentitial

and other minor fixes