If you are planning to stay in your home for several years, then you can save money by paying points for lower interest rates. You pay up front fees to ensure you have lower interest payments over the course of your loan. Remember, this only works if you keep your mortgage for several months.
It's better to follow the 2% Rule which suggests that you can enjoy the benefits of a home refinance if your mortgage refinance rate is 2% lower than that on your current loan. The interest savings will help you recoup the costs you've paid for the new loan provided you stay in the property for a certain period of time (break-even period). However, there are no-cost as well as low-cost refinance loans wherein the costs are included into the loan. But you can expect comparatively higher rates on such loans. Moreover, these loans are limited when the market is in a credit crunch.
You can ask for a copy of your settlement cost papers (the HUD-1 form) one day in advance of your loan closing. This will give you a chance to review the documents and verify the terms.
If you have bad credit, find a lender who is willing to work with you and offer you reasonable loan terms.