added function to convert binary values to ascii numbers