Analysis of liquid crystal flows in dimension two