adding some comments to optim2.m file