Working on code to find loglikely
Slowly getting there, currently getting a weird nullpointer error