Here is my refried bean recipe - it is the best I've found and very easy to make.
REFRIED BEANS
3 cups dried pinto beans
3 quarts water
6 slices bacon, cooked and coarsely chopped
1/2 cup onion, diced
1 Tablespoon chopped garlic
1 can of diced jalepenos or green chilis if you want them more mild
1 Tablespoon chile powder
2 teaspoons ground cumin
1 Tablespoon salt
2 chipotles in adobo sauce, and 2 Tablespoons of the sauce if you want them smokey and zippy.
Directions:
Soak the dried pinto beans overnight in a large crock pot. The next day add the other ingredients and turn the crock pot onto High. I allow mine to cook for about 8 hours on high, and then turn to low until I'm ready to refry/mash them. Heat a dutch oven with 1/4 cup shortening or oil of your choice. Scoop out the beans with a slotted spoon and put them into the dutch oven. Add ladles of liquid and mash the beans using a hand blender (boat motor blender) or a potato masher. Continue to add liquid until the beans are the consistency you desire - know that as they cool, they will thicken more so if you expect to use them for more than one meal, I will scoop out what I want for the first meal and then blend in more liquid to what is left so they are a little softer.
We sprinkle grated colby jack on top, or queso fresco if we can find it. Can be a side dish one night, bean burritos another and they keep very, very well in the refrigerator.