refactored html generator code; improved income based html colorizing