Fix various broken things: Sets now work. input/output files now properly implemented (and not crashing on use of 'input')