fixed up the bwt makefile
fixed up the lookup code error checking
fixed symlinks that were broken