coments were cleaned and argvs set for work in matlab