reformat output for one record per line
refactor functions for easier output formating

getColor functions return const strings now,
output is performed by a single printf statement.