Added comments for each line of code.