Text this: Optimal control of infectious diseases using vaccination and treatment