Took out some printfs as well as started working on chdir