Added accessors for history.
Added run interface and initial error checking.