Version 3.1

Bug fix on weights for high-energy photon events