To improve your grammar, use grammar guide books like Advanced English Grammar with Answers. Read as much as you can.