add comments listing dependencies at the top of each file