Updated README and added more detailed code