add documentation and config variables