remove old dist
atexit
update Makefile
fix dist to be correct on nil length inputs