1) got rid of execute permissions on source files  2) added function to convert octal st_mode to readable permission flags e.g. 40700 -> drwx------