big changes to all of the likelihood related functions to account for fact that integral does not need to be done over data times