Finished writing likelihood for factor analysis