remove tmp file and add comments
before the batch solve