add commenting and remove unneeded synch block
kill nodes when running compile_and_run script