Implemented some testing and Hamming encode

Implemented some more testing.
Implemented Hamming encode.
Still to test to see if can decode result of encode (still to implement
decode)