added protection against incorrect usage, dump stringset into file