Fixed issues with hamming decode within main()