Midstate elementary school principal resigns amid questions