Added licence
Changed where supervsior pid writes to