small cleanups + doc