Added data organization script

Finally got around to doing it. Lines 57-149.