added changing directories function
updated the main loop to test cd
used strtok to remove '\n' from end of user input char*'s