beta version of revised MIMO demo code