Theory of Zipfs Law and Beyond (Lecture Notes in