Finalized testdecode.c
Fixed bugs in testdecode.c
Fixed bugs in macros in iris.h