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
Aha, you mean that if we passed the objects we wouldn't need to reexamine the filesystem?