Cleanup and doc.