Added Comments

Added comments to functions