Refactor color codes. Move logic to modules. Use full ANSI codes.