Refactored: extracted CF part of RBM into another class. Will be more easy to use with other methods.
Small changes