generating lookup tables is working and complete
added working makefile, rewrote convert as a library