added finding peaks per pole and rg divided into files per pole