Added comments on code reformating some code.