rewrote uniqify for better error handling, better readability, have not implemented the parser yet in the rewrite. the old uinqify is no uniqifyold1.c