split apart configuration docs, add lua code where necessary