Commented code

Added comments