Text this: Mathematical foundations of information theory