Add docs for optimizer