updated docs. small bug fixes to sum of squares expr.