file modes corrected, makefile