refactored scripts, added rbm

svd now more modular, added rbm thing in R