fixed names of elelments list of ranks
Kendall tests & other minor fixes
fixed write files to disks