cleanup and docs