added comments and made final changes
added comments and made final changes