Some commenting, fix to file separator in output, bugfix for null objects having obj->next calls on them