implement new xml format and bug fixes --> now working

Really small but important bug fixes in particular when checking is a process is already running or not
I should have removed it but yesterday I was so tired that i did not clean up.... btw we need to remove the convert_sthlm_to_uppsala function... I will leave the honour to you @mariogiov