Text this: Development of a control system for general anesthesia