added idcode test.  added support for '-' for use of stdin