Added some more comments and did some spacing.