Added more doctests and longer descriptions.