documentation update and cleanup example