Code cleanup and documentation added to Expr.