Added "How does it Work?" section to README. Modified bash code in README.