fix a rearranging bug in read-process.R; cleant main.R; updated README.md