New feature and bug fix

Added a new option called "condition".
A few bug-fixes related to overflowing tooltips when at screen ends