General code/documentation improvements.