Updated README and added comments in the cpp.