made output go into folder, and added commandline run program