integrated RBM of rbmtoolbox project, changed member variables to pointers