fixed a bug in the calculation of observation lengths at add_observation
changed pid and log paths to be more generally correct for linux systems