Changed commentaries for optymalization function in CS