added code to record emotions after death & include in app