fixed s.e. mc; printing mc output to file