lw_pp: add flexibility to waveform parsing routine from header
lw_pp: save samples to 'posterior_samples.dat' file