moved dataset test functions from system to dataset
code cleanup
fixed wrong calculation of rbm total energy