HUD overlay improvements

Reduces code duplication, increases code robustness, adds science google overlay while I was at it.