Added Comments

Added comments about the functions