Added code to output frontier entropies, and also modified simulator