added compaction for local docs
added method to sanity check the seq tree