fixes border
removes unused code, adds hide and show functions
removes code overlay, removes unused vars
custom initilization for the annotation overlay
increases the opacity of the hint when the border is dark