Hey wishlf,
I can honestly say that you will not regret getting the K5, it's a superb piece of kit. Alright, it might have some small problems, like any camera. And I know what it feels like having a camera that's quite badly defected( I ordered two K7's and both of them were faulty
) but that's absaloutly no reason to make a sweeping statement and say "Oh, my friend has a K5 and it didn't work, that means pentax are rubbish" because pentax arn't rubbish, nor are nikon, canon, Sony, Olympus, panasonic, etc....... They are all different and in the end, it's all down to personal preference and don't let anybody tell you a specific brand is better, because they arn't.
I hope your K5 has no problems and happy shooting!!!
Regards
Bertie