Add docs and make config more generic