created/began semclient, for writing to a file

my computer gets core dumped every time, so this is as-yet untested