Added support for variables to documentation generator.