Random Flips

Added documentations.
Added ability to flip random node.