Comments! I started documentation!
Fade effect for smoother display
Also I moved the calculation of magintude around, resulting in less wasted computing
ressources.