Margaret Tudor marries James IV