Added classes
Node appending is finally working
Fixed bug in probability.
TODO: Implement correctly the logic to add a node.