finish adding docs for optimizer