Need to fix the last segfault and strtok() while loop to finish!