Tue evening ver. (working under test conditions)

fixes bug where single rule was being sent multiple times due to the
buffer lead-time not being calculated correctly; uses predefined array
of rules for composition (for testing); as with previous commit,
non-active frames now correctly overwritten with counts of 0;