Bugfixin

Fixing the resizing and tooltip issues. Changing the colors. Formatting all the code.