Added color indicators and put templates in external files.