added documentation, added redis config