added docstings to rop + example