Made it possible to create object that can be saved to disk with xml
Added try catch to RBFs incase of out of memory