various cleanups
misc stuff
beginnings of docs