Added latex docs for msg_passing