Improved styling and fixed the spectrum percentage determination.