Added comments

Added the comments for the created functions and one for the overall
description.