readme updated

more explanation added for the code