description of input file
memory management: big array r is in better shape for index looping
gitignore files ending in ~