Added a parsing function to convert the csv files into arrays. Fleshed out the p_train function with everything except for shuffle support.