Code refactoring. Making everything tidy!
Added documentation to the tooltip object. Also created a separate function for checking the longest string.
Fixed a small error on the tooltip longest line function. Didn't reference to the context variable.