probably final commit, add main calls and outputfile