Cleaned up spm_list_edited a bit. Also it should now be easier to reorganize the output csv if you want it in a different format.