made lots of changes on forming and processing ChunkTHAN. It is in a
good shape now.