improved duplicate removal and corrected various bugs in EntropyEstimator and FoldedState, FoldedState computes Astar energies correctly