Added Comments on functions