moved all *.r files to code folder