code cleanup. also switched stringset to use FILE* instead of outstream