Some docs and cleanup.