Coaching of an accused and witnesses is quite normal procedure. That's not to say that counsel put words into their mouths but rather how best to deal with the various questions that are likely to be asked. They're always advised to "just answer the question" and try and refrain from adding additional information as this can lead them into territory they may not be prepared for. The following article "Why Defend Criminals" is very interesting to read and explains a lot.
http://sheltonlegal.com/why-defend-criminals/
Thanks for the link - I found this really informative. Thank you.