Create tooltip functions, code formatting