Made corrections and added comments