Code and documentation improvements.