Improve documentation.
Simplify some gtd functions.