refactor kind and color to be capitalized
refactor reading the file to a method of its own
S3: sort flags