Made formatting in CSV consistent. Cleaned up some redundant function calls.