Fixed labeling of edge files and error logging