Changes README, and refactors a function.