Filling out my W4 form

Okay so I got a raise last year, and I have two girls 12 and 15. And I ended up having to pay the IRS money back. So I want to know how do I fill out the W-4 form so that I don't have to pay back money, and get some money back?