Code changes and documentation improvements.