Text this: Optimizing Energy Efficiency in Ultra-Dense Networks Through Enhanced Device-To-Device Communication and Small Base Station Management