[localization] Corrects hbit behavior (returs -1 for 0, and ranges from 0 to 63).
[localization] Betters writing.