Added comments that describe functions