Adjust positioning of tooltip, added some comments