Rearranged some comments and fixed some mallocs in edit_scripts.c