Code doc and clean up for documentation update.