testing patch-based rbm
a little cleanup (more to do today)