Text this: Deterministic and Stochastic Optimal Control