Refactoring peaks_from_model_parallel

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