updated hamtest.c with the function binToArr. also removed debugging printfs