Add mdfa_optim and docs.