Added comments and intendation.