Code and documentation cleanup.