Added csv log and tweak pid parameters
Fixed issue with concurrent access to status data. Was loosing \'time\' then