add occupation number sorting for zcas.
update print iteration function
indentation fix