minor corrections to r compile script, docs