Many changes from ert.prototype to cwrapper.prototype.