Final revisions to math formatting