txt to binary code revised to read the hazard accurately. still in the works...