documented config files and fixed some bugs on production