RAVEN Theory Manual and User Guide