further modifications to the binary rbm...now with learning