moved stuff to loglikelihood and rbm header