First, as a Canadian, you probably have more right to come here then most others. So I apologize for how they treated you. If it is any consolation, cops do that to us all the time. I don't know why, what is benefit of locking someone innocent or making people accuse themselves (remember, do you know how fast you were driving).
Anyhow, sorry, enjoy Canada, who knows why this was good for you.
Also, it is not your fault, system is rigged to be abused by everyone else who will work illegally, but you who will not.
So now I am ranting.
I have to add this as well. Going to foreign countries is always unpleasant experience because you are without your support structure. In that regard you were naive and not prepared.
I still think we should have agreement with Canada and people should move more easily.