Version 3.1

Bug fixes on weights for high-energy photon events