Could the knock be an exhaust leak? Im pretty sure I've got one going on and it goes away or at least quiets down a little after engine is warm. For the idle I would clean the IAC valve if you haven't done so already. I had an idle problem a few years ago and cleaning the IAC smoothed it right out. Good Luck