Add a function to sort out the issue with missing levels when there is nesting relationship beween the treatment factors.

Spell checked the Rd files.