Binary Encoding update

This converts the program to use binary. (ints really...)