Rename redis and transaction callback functions; add documentation.