adding data transformation script (already relatively complete)