added capability to pass in arguments to likelihood function