added optional B, Binv params to peaks_from_model
fixed typos
refactored _peaks_from_model_parallel