added docstrings for cipher functions