avoid memory allocation for phile::rms, remove headers not needed
refactor phile::peak to avoid double iterator dereference and to be clearer