module cleanup and docs