Remove old code and fix some bugs

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>