bunch of docs and random cleanups