code: private static String toBinaryString(int word)
    {
      String lsb = Integer.toBinaryString(word);
      StringBuilder pad = new StringBuilder();
      for (int i = lsb.length(); i < 32; i++) {
        pad.append('0');
      }
      return pad.append(lsb).toString();
    }
docs: Generates the 32-bit binary representation of a given word (debug only)
  
  @param word word to represent
  
  @return 32-character string that represents the given word