Move context creation to after output directory creation; move file refreshing to individual source files
Change metadata comment