Move source to src folder
Break out tooltip background color
avoid making global variable and fix a few bugs