fix main exit so it actually exits
add install target, nonfunctional
better docs