Added comments

Added comments everywhere for clarification