Add inline documentation of cipher functions