Implement RAVE and root parallelize
Bug fix.
Add comments.