Improvements to Hamming Distance doc.