Use of TPUT variable instead of tput
Renamed variables
Renamed functions
Added default callbacks