Fixed minor bugs that made it so the program didn't work...