As you now state you were married overseas then you will need that marriage certificate certifying. Not sure if you have to do that overseas or if you can do it in Thailand.
denied entry as they think you are not studying as classes are in progress and you are trying to live here as a tourist longtime taking the p..s out of the system
The way its going is that they want anyone living in Thailand more than 180 days a year to be on a long term visa. This appears to tie in with them wanting everyone living here more than 180 days a year to file a tax return.