added comments and Indentation