made it so that you can run it with the directory as a parameter