Updated README and portions of the code.