fix shift debug print typo
fix binary number parsing