Ask the author of paper about an idea I am doing my MS thesis on wireless networking, I give the codes from the author of the paper, for some month, after reading his paper and also working on the some aspects of his codes (the implementation of his paper). Now it is the time to create the idea, Can I send him "Do you have any idea which improve some aspects of your paper ?  " 

would you please give me some advises ? can I ask him or not? how to ask that ? what I should say to him ? 

NOTE: my reason for asking him is this: I am sure he knows his codes better than every body, also I am afraid in implementing any idea which do not lead to good result at the end. By the way I do not have lot of time to try and test another ways I mean try and implement one idea with bad result and after that switch to another idea.

UPDATE: If I ask him, "... , that is  my idea, what do think about my idea?" what will happen? what is his possible respond?

UPDATE2: The meaning of idea in my question is "HOW TO EXTEND HIS WORK"
It never hurts to politely ask!