Added debug mode
Added color opt