If you stay in hotel a tm30is done automatic if staying with locals should complete a tm 30 in 24 from arriving so immigration knows where you are staying,
A yearly o visa requires medical insurance just get a 3 month visa and get the 1 year extension in thailand. 3 month or 90 day visa is 120 dollars and is very easy to get as evisa online. Takes 10 days