changes to add communication record,added functions to get communications and get recipients