Refactored: renamed top-level functions to correspond with paper, renamed member.key to member.id and cell.key to cell.id