added modify atom function (velocity only by now!)