Additional comments

Added further explanations of code.