added debug mode so it's easier for the user to just run the program