i am also very new at this, but from what i understand from your code, you are sending a signal every 10 miliseconds.
It doesn't matter is the pot value has changed or not.
It seems to me that it would be idea to check first if the pot value has changed. If it has, then send the message, if not, then check again (but not send any message!).
I also have some troubles with ableton. i have also been "building" some kind of midi controller and it also happens that it does quite strange things after i map it. I have to get my hands on some other software and try it...