more clean up, update output module

- improved algorithms of subxcoh and xcoh
cleaner structure, more subroutines, allow delaminated elem to partition
- output fstat is elem curr status value