Switch from the batch file to all-R script

It's tough to get .bat files working on other people's computers - putting
everything in R means that people only need to learn one context.
Update README to reflect clean_script.r changes.