Updated gl_class_cube and gl_class_profile, start of work on loglike