Proper Encoding Done

Hamming encoding now works