added comparisons on significant bits to the Key module
removed unused imports