Refactoring peaks_from_model_parallel

I made some refactoring of the code while I was looking for the temp file problem on the windows machine. I also added a comment in the code about the issues #253.