added comments to Hamming.java