Added comments

Added several more comments for each line of code.