moved asciitoint routine into main.c