Persistence updates

Persistence limited to 3 laps
Fixed persistence loading when record is corrupted
Persistence write logs