First off sorry if this isn't the right place, I am new here. I took a job creating a computer program for a client. No formal contract was signed, though he did agree to pay me a flat rate. I gave him the completed program and then he asked me to sign a contract. I declined as there were a lot of unfair things in the contract, like having to do repairs for free.
Now he has told me that he has trade marked the name, and patented the program. He says that if I ever reuse any part he will sue me, and if he find any part of the program being given away or sold he will sue me. Is this possible? How can I tell if a patent is pending or has been filed? It seems unlikely to me as it's been less than a month since this transpired. I'm in Canada and the client is in the Republic of China. What do I need to ask him for to check, a patent number or something?