Added comments to the first half and fixed indentation for first half