binary conversion code cleaned up; still need to address missing values in the raw text data