adding line colors and fixing parsing bug