Fix writing dat
Fix bad segments due to fixing collisions
Fixed displayed found segments count
Fixed restoring zoom values
Added pd maximum duration as pref
Fix painting grid on profile widget