made things somewhat less dependent on icpc
moved creation of output folder to input parser, added conditional